package com.company.structural.flyweight_pattern.flyweight;

import com.company.structural.flyweight_pattern.unshared_concreate_filyweight.Coordinates;

/**
 * 围棋棋子
 * @ClassName IgoChessman
 * @Author tiezheng.han
 * @Date 2020/9/1 15:35
 **/
public abstract class IgoChessman {

    public abstract String getColor();

    public void display(Coordinates coordinates){
        System.out.println("棋子颜色：" + this.getColor()+ "，棋子位置：" + coordinates.getX() + "，" + coordinates.getY());
    }
}
